package com.px.device.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.px.device.mapper.RoutesPointActionMapper;
import com.px.device.domain.RoutesPointAction;
import com.px.device.service.IRoutesPointActionService;

/**
 * 航线点位动作Service业务层处理
 * 
 * @author WRJ
 * @date 2024-08
 */
@Service
public class RoutesPointActionServiceImpl implements IRoutesPointActionService 
{
    @Autowired
    private RoutesPointActionMapper routesPointActionMapper;

    /**
     * 查询航线点位动作
     * 
     * @param routesPointActionId 航线点位动作主键
     * @return 航线点位动作
     */
    @Override
    public RoutesPointAction selectRoutesPointActionByRoutesPointActionId(Long routesPointActionId)
    {
        return routesPointActionMapper.selectRoutesPointActionByRoutesPointActionId(routesPointActionId);
    }

    /**
     * 查询航线点位动作列表
     * 
     * @param routesPointAction 航线点位动作
     * @return 航线点位动作
     */
    @Override
    public List<RoutesPointAction> selectRoutesPointActionList(RoutesPointAction routesPointAction)
    {
        return routesPointActionMapper.selectRoutesPointActionList(routesPointAction);
    }

    /**
     * 新增航线点位动作
     * 
     * @param routesPointAction 航线点位动作
     * @return 结果
     */
    @Override
    public int insertRoutesPointAction(RoutesPointAction routesPointAction)
    {
        return routesPointActionMapper.insertRoutesPointAction(routesPointAction);
    }

    /**
     * 修改航线点位动作
     * 
     * @param routesPointAction 航线点位动作
     * @return 结果
     */
    @Override
    public int updateRoutesPointAction(RoutesPointAction routesPointAction)
    {
        return routesPointActionMapper.updateRoutesPointAction(routesPointAction);
    }

    /**
     * 批量删除航线点位动作
     * 
     * @param routesPointActionIds 需要删除的航线点位动作主键
     * @return 结果
     */
    @Override
    public int deleteRoutesPointActionByRoutesPointActionIds(Long[] routesPointActionIds)
    {
        return routesPointActionMapper.deleteRoutesPointActionByRoutesPointActionIds(routesPointActionIds);
    }

    /**
     * 删除航线点位动作信息
     * 
     * @param routesPointActionId 航线点位动作主键
     * @return 结果
     */
    @Override
    public int deleteRoutesPointActionByRoutesPointActionId(Long routesPointActionId)
    {
        return routesPointActionMapper.deleteRoutesPointActionByRoutesPointActionId(routesPointActionId);
    }
}
